﻿<UserControl x:Class="SharePoint.Security.ConfigAnalyzer.Client.Views.FarmSummary"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="800"
              xmlns:dg="http://schemas.microsoft.com/wpf/2008/toolkit">

    <ScrollViewer  FontFamily="Segoe UI">
        <Grid Margin="10" >
            <Grid.RowDefinitions>

                <RowDefinition Height="auto" />
                <RowDefinition Height="*" />
            </Grid.RowDefinitions>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"></ColumnDefinition>
                <ColumnDefinition Width="auto"></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <StackPanel Grid.Row="0" Grid.Column="0" Name="CentralAdminSitePanel" Margin="0,0,10,10" >
                <TextBlock Text="Central Administration Site" FontSize="16" Padding="0,0,0,5"/>
                <StackPanel Orientation="Horizontal" >
                    <TextBlock Text="URL:" FontSize="12" FontWeight="SemiBold" />
                    <TextBlock Text="{Binding Url}" FontSize="12"  Padding="10,0,0,5"/>
                </StackPanel>
                <StackPanel Orientation="Horizontal" >
                    <TextBlock Text="Port: " FontSize="12" FontWeight="SemiBold"/>
                    <TextBlock Text="{Binding Port}" FontSize="12"  Padding="10,0,0,5"/>
                </StackPanel>
            </StackPanel>

            <StackPanel Grid.Row="0" Grid.Column="1" Name="ContentDBPanel" Margin="50,0,0,10">
                <TextBlock Text="Content Database" FontSize="16"  Padding="0,0,0,5"/>
                <Grid>
                    <Grid.RowDefinitions>
                        <RowDefinition Height=".5*"></RowDefinition>
                        <RowDefinition Height=".5*"></RowDefinition>
                    </Grid.RowDefinitions>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="1.5*"></ColumnDefinition>
                        <ColumnDefinition Width=".6*"></ColumnDefinition>
                        <ColumnDefinition Width=".2*"></ColumnDefinition>
                    </Grid.ColumnDefinitions>

                    <TextBlock Text="Name" FontSize="12"  Padding="0,0,0,5" Grid.Column="0" FontWeight="SemiBold" Grid.Row="0"/>
                    <TextBlock Text="Server" FontSize="12"  Padding="20,0,0,5" Grid.Column="1" FontWeight="SemiBold" Grid.Row="0"/>
                    <TextBlock Text="Status" FontSize="12"  Padding="20,0,0,5" Grid.Column="2" Grid.Row="0" FontWeight="SemiBold"/>

                    <TextBlock Text="{Binding Name}" Name="TxtName" FontSize="12"  Padding="0,0,0,5" Grid.Column="0" Grid.Row="1"/>
                    <TextBlock Text="{Binding Server}" Name="TxtServer" FontSize="12"  Padding="20,0,0,5" Grid.Column="1" Grid.Row="1"/>
                    <TextBlock Text="{Binding Status}" Name="TxtStatus" FontSize="12"  Padding="20,0,0,5" Grid.Column="2" Grid.Row="1"/>
                </Grid>
            </StackPanel>

            <StackPanel Grid.Row="1" Grid.Column="0" Margin="0,10,0,0">
                <TextBlock Text="Farm Servers" FontSize="16"  Padding="0,0,0,5"/>
                <ListView Name="FarmServers" ScrollViewer.VerticalScrollBarVisibility="Hidden" Width="200" HorizontalAlignment="Left" 
                              
                              BorderThickness="0"  FontSize="12">

                </ListView>
            </StackPanel>

            <StackPanel Grid.Row="1" Grid.Column="1" Margin="50,10,0,0">
                <TextBlock Text="Web Applications" FontSize="16"  Padding="00,0,0,5"/>
                <dg:DataGrid Name="grdRules" ItemsSource="{Binding}" Background="White" HorizontalAlignment="Left" AutoGenerateColumns="True" 
                                 GridLinesVisibility="None" BorderThickness="0" IsReadOnly="True" 
                             FontSize="12" Width="500">

                </dg:DataGrid>
            </StackPanel>

        </Grid>
    </ScrollViewer>
</UserControl>
